<template>
  <div class="cinemaFilm-list" v-if="list">
  <!-- <div class="cinemaFilm-list"> -->
    <van-tabs>
      <div class="discount">
        <div class="discount-box">
          <div class="zheKou">折扣</div>
          <span>开卡享优惠</span>
        </div>
        <div class="kaiKa">30元起开卡<van-icon name="arrow" /></div>
      </div>
      <van-tab class="mylunbo-maiPiao"
      v-for="(item,index) in list.shows" :key="index"
      :title="item.showDate"
      >
        <div class="myCinema-Maipiao">
          <ul>
            <li v-for="(timeItem,index) in item.plist" :key="index">
              <div class="myCinema-Maipiao-time">
                <div class="myCinema-Maipiao-time1">{{timeItem.tm}}</div>
                <div class="myCinema-Maipiao-time2">23:06散场</div>
              </div>
              <div class="myCinema-Maipiao-site">
                <div class="myCinema-Maipiao-site1">{{timeItem.lang}} {{timeItem.tp}}</div>
                <div class="myCinema-Maipiao-site2">
                  {{timeItem.th}}
                </div>
              </div>
              <div class="myCinema-Maipiao-jiage">
                <div class="myCinema-Maipiao-jiage1"><span>¥</span>{{timeItem.baseSellPrice}}</div>
                <div v-if="timeItem.vipPrice.length != 0">
                  <div class="myCinema-Maipiao-jiage2">折扣卡</div>
                <div class="myCinema-Maipiao-jiage3">¥{{timeItem.vipPrice}}</div>
                </div>
                
              </div>
              <div class="myCinema-Maipiao-gou">购票</div>
            </li>
          </ul>
        </div>
        <div></div>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  name: "CinemaFilmList",
  props: {
    list: [Array, Object],
  },
  created() {},
  mounted() {
    // 
  },
};
</script>

<style lang="less" scoped>
.cinemaFilm-list {
  box-sizing: border-box;
}
.discount {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  background-color: #fff5ea;
  font-size: 15px;
  display: flex;
  align-items: center;
  .discount-box {
    display: flex;
    align-items: center;

    .zheKou {
      width: 35px;
      height: 17px;
      background-color: #ff941a;
      color: white;
      text-align: center;
      font-size: 10px;
    }
    > span {
      color: #fa9600;
      font-size: 10px;
      margin-left: 18px;
    }
  }
  .kaiKa {
    font-size: 15px;
    color: #999;
    margin-left: auto;
  }
}
.mylunbo-maiPiao {
  padding: 0 10px;
  .myCinema-Maipiao {
    ul {
      li {
        padding: 20px 0;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .myCinema-Maipiao-time {
          font-size: 10px;
          .myCinema-Maipiao-time1 {
            margin-bottom: 5px;
            font-size: 23px;
            color: black;
          }
          .myCinema-Maipiao-time2 {
            font-size: 13px;
            color: #999;
          }
        }
        .myCinema-Maipiao-site {
          width: 23%;

          font-size: 10px;
          .myCinema-Maipiao-site1 {
            font-size: 15px;
            margin-bottom: 10px;
          }
          .myCinema-Maipiao-site2 {
            font-size: 13px;
            color: #999;
            white-space: nowrap;

            text-overflow: ellipsis;

            overflow: hidden;
          }
        }
        .myCinema-Maipiao-jiage {
          display: flex;
          align-items: center;
          .myCinema-Maipiao-jiage1 {
            > span {
              font-size: 10px;
              color: #f06762;
            }
            color: #f06762;
            font-size: 20px;
            margin-right: 5px;
          }
          .myCinema-Maipiao-jiage2 {
            width: 40px;
            height: 17px;
            background-color: #ff941a;
            color: white;
            text-align: center;
            font-size: 10px;
            // > span {
            // }
          }
          .myCinema-Maipiao-jiage3 {
            //  width: 20px;
            height: 15px;
            color: white;
            text-align: center;
            font-size: 10px;
            color: #ff941a;
            border: 1px solid #ff941a;
            padding-right: 5px;
          }
        }
        .myCinema-Maipiao-gou {
          font-size: 10px;
          width: 43px;
          height: 20px;
          border: 1px solid #f06762;
          border-radius: 15px;
          color: #f06762;
          text-align: center;
          line-height: 22px;
        }
      }
    }
  }
}
</style>